package com.aode.sovo_miniprogram.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

public class Detail {
    @TableId(value = "detail_id",type = IdType.AUTO)
    private Integer detail_id;
    private String detail_content;
    private int class_id;
    private int sclass_id;
    //1 代表存在的值  0 代表已删除的值
    @TableLogic(value = "1",delval = "0")
    private Integer detail_isdelete;

    //创建表的时候自动插入数据 时间
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    //更新表的时候自动修改数据 时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;

    public Detail() {
    }

    public Detail(Integer detail_id, String detail_content, int class_id, int sclass_id) {
        this.detail_id = detail_id;
        this.detail_content = detail_content;
        this.class_id = class_id;
        this.sclass_id = sclass_id;
    }

    public Integer getDetail_id() {
        return detail_id;
    }

    public void setDetail_id(Integer detail_id) {
        this.detail_id = detail_id;
    }

    public String getDetail_content() {
        return detail_content;
    }

    public void setDetail_content(String detail_content) {
        this.detail_content = detail_content;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public int getSclass_id() {
        return sclass_id;
    }

    public void setSclass_id(int sclass_id) {
        this.sclass_id = sclass_id;
    }

    @Override
    public String toString() {
        return "Detail{" +
                "detail_id=" + detail_id +
                ", detail_content='" + detail_content + '\'' +
                ", class_id=" + class_id +
                ", sclass_id=" + sclass_id +
                ", detail_isdelete=" + detail_isdelete +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
